package com.zbt.comment.service.impl;

import com.zbt.comment.mapper.CommentMapper;
import com.zbt.comment.pojo.Comment;
import com.zbt.comment.pojo.ContentDTO;
import com.zbt.comment.service.CommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bingtao.zhong.o
 * @date 2022/5/6 6:17 下午
 */
@Slf4j
@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;
    @Override
    public List<ContentDTO> selectCommentById(Comment comment){
        return commentMapper.selectCommentById(comment);
    }
}
